import java.util.Scanner;

public class pp35
{
   //-----------------------------------------------------------
   //  a and b is X  , c and d is Y
   //-----------------------------------------------------------
   public static void main(String []args){
   int a,b,c,d;
   double discriminant, root1,root2,root3,root4,root5,root6;

   Scanner scan = new Scanner(System.in);

   System.out.print("Enter the First number: ");
   a = scan.nextInt();
 
   System.out.print("Enter the Second number: ");
   b = scan.nextInt();

   System.out.print("Enter the Third number: ");
   c = scan.nextInt();

   System.out.print("Enter the Fourth number: ");
   d = scan.nextInt();

   //Use the quadratic formula to compute the roots.
   //Assumes a positive discriminant.
   root1 = (b - a);
   root2 = (d - c);
   root3 = (Math.pow(root1, 2));
   root4 = (Math.pow(root2, 2));
   root5 = (root3 + root4);
   root6 = (Math.sqrt(root5));
  
   System.out.println("JuLi is :" + root6);
   }
}
